package com.example.tse.rbhttpservice.service.home.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.home.model.HomeGetGroups;
//import com.rbyair.services.home.model.HomeGetSeconds;
//import com.rbyair.services.home.model.HomeGetSpecialBanners;
//import com.rbyair.services.home.model.HomeGetGroupBanner;
//import com.rbyair.services.home.model.HomeGetActivities;
//import com.rbyair.services.home.model.HomeGetPopAd;
//import com.rbyair.services.home.model.HomeGetExclusives;
//import com.rbyair.services.home.model.HomeGetHotsales;
//import com.rbyair.services.home.model.HomeGetNewest;
//import com.rbyair.services.home.model.HomeGetVirtualcat;
//import com.rbyair.services.home.model.HomeGetReports;
/**
* 获取首页所有数据用户，包括广告、组团、秒杀、专场
* @author wliu
* edit tse
*/
public class HomeGetResponse extends RudderResponse{

private List<HomeGetGroups> groups = new ArrayList<HomeGetGroups>();


private List<HomeGetSeconds> seconds = new ArrayList<HomeGetSeconds>();


private List<HomeGetSpecialBanners> specialBanners = new ArrayList<HomeGetSpecialBanners>();


private HomeGetGroupBanner groupBanner = new HomeGetGroupBanner();


private List<HomeGetActivities> activities = new ArrayList<HomeGetActivities>();


private HomeGetPopAd popAd = new HomeGetPopAd();


private List<HomeGetExclusives> exclusives = new ArrayList<HomeGetExclusives>();


private List<HomeGetHotsales> hotsales = new ArrayList<HomeGetHotsales>();


private List<HomeGetNewest> newest = new ArrayList<HomeGetNewest>();


private List<HomeGetVirtualcat> virtualcat = new ArrayList<HomeGetVirtualcat>();


private List<HomeGetReports> reports = new ArrayList<HomeGetReports>();


private String remarks = "";


/**
* @return groups
*/
public List<HomeGetGroups> getGroups() {
return this.groups;
}

/**
* @return groups
*/
public void setGroups(List<HomeGetGroups> groups) {
this.groups = groups;
}
/**
methodName    Groups
type          List<HomeGetGroups>
name          groups
defaultType   new ArrayList<HomeGetGroups>()
*/

/**
* @return seconds
*/
public List<HomeGetSeconds> getSeconds() {
return this.seconds;
}

/**
* @return seconds
*/
public void setSeconds(List<HomeGetSeconds> seconds) {
this.seconds = seconds;
}
/**
methodName    Seconds
type          List<HomeGetSeconds>
name          seconds
defaultType   new ArrayList<HomeGetSeconds>()
*/

/**
* @return specialBanners
*/
public List<HomeGetSpecialBanners> getSpecialBanners() {
return this.specialBanners;
}

/**
* @return specialBanners
*/
public void setSpecialBanners(List<HomeGetSpecialBanners> specialBanners) {
this.specialBanners = specialBanners;
}
/**
methodName    SpecialBanners
type          List<HomeGetSpecialBanners>
name          specialBanners
defaultType   new ArrayList<HomeGetSpecialBanners>()
*/

/**
* @return groupBanner
*/
public HomeGetGroupBanner getGroupBanner() {
return this.groupBanner;
}

/**
* @return groupBanner
*/
public void setGroupBanner(HomeGetGroupBanner groupBanner) {
this.groupBanner = groupBanner;
}
/**
methodName    GroupBanner
type          HomeGetGroupBanner
name          groupBanner
defaultType   new HomeGetGroupBanner()
*/

/**
* @return activities
*/
public List<HomeGetActivities> getActivities() {
return this.activities;
}

/**
* @return activities
*/
public void setActivities(List<HomeGetActivities> activities) {
this.activities = activities;
}
/**
methodName    Activities
type          List<HomeGetActivities>
name          activities
defaultType   new ArrayList<HomeGetActivities>()
*/

/**
* @return popAd
*/
public HomeGetPopAd getPopAd() {
return this.popAd;
}

/**
* @return popAd
*/
public void setPopAd(HomeGetPopAd popAd) {
this.popAd = popAd;
}
/**
methodName    PopAd
type          HomeGetPopAd
name          popAd
defaultType   new HomeGetPopAd()
*/

/**
* @return exclusives
*/
public List<HomeGetExclusives> getExclusives() {
return this.exclusives;
}

/**
* @return exclusives
*/
public void setExclusives(List<HomeGetExclusives> exclusives) {
this.exclusives = exclusives;
}
/**
methodName    Exclusives
type          List<HomeGetExclusives>
name          exclusives
defaultType   new ArrayList<HomeGetExclusives>()
*/

/**
* @return hotsales
*/
public List<HomeGetHotsales> getHotsales() {
return this.hotsales;
}

/**
* @return hotsales
*/
public void setHotsales(List<HomeGetHotsales> hotsales) {
this.hotsales = hotsales;
}
/**
methodName    Hotsales
type          List<HomeGetHotsales>
name          hotsales
defaultType   new ArrayList<HomeGetHotsales>()
*/

/**
* @return newest
*/
public List<HomeGetNewest> getNewest() {
return this.newest;
}

/**
* @return newest
*/
public void setNewest(List<HomeGetNewest> newest) {
this.newest = newest;
}
/**
methodName    Newest
type          List<HomeGetNewest>
name          newest
defaultType   new ArrayList<HomeGetNewest>()
*/

/**
* @return virtualcat
*/
public List<HomeGetVirtualcat> getVirtualcat() {
return this.virtualcat;
}

/**
* @return virtualcat
*/
public void setVirtualcat(List<HomeGetVirtualcat> virtualcat) {
this.virtualcat = virtualcat;
}
/**
methodName    Virtualcat
type          List<HomeGetVirtualcat>
name          virtualcat
defaultType   new ArrayList<HomeGetVirtualcat>()
*/

/**
* @return reports
*/
public List<HomeGetReports> getReports() {
return this.reports;
}

/**
* @return reports
*/
public void setReports(List<HomeGetReports> reports) {
this.reports = reports;
}
/**
methodName    Reports
type          List<HomeGetReports>
name          reports
defaultType   new ArrayList<HomeGetReports>()
*/

/**
* @return remarks
*/
public String getRemarks() {
return this.remarks;
}

/**
* @return remarks
*/
public void setRemarks(String remarks) {
this.remarks = remarks;
}
/**
methodName    Remarks
type          String
name          remarks
defaultType   ""
*/

/**


    private static void filterFor(HomeGetGroups home) {
        if (home.getGroupId() == null) {
            home.setGroupId("");
        }
        if (home.getName() == null) {
            home.setName("");
        }
        if (home.getMainImage() == null) {
            home.setMainImage("");
        }
        if (home.getLimit() == null) {
            home.setLimit("");
        }
        if (home.getEndTime() == null) {
            home.setEndTime("");
        }
        if (home.getJoinNum() == null) {
            home.setJoinNum("");
        }
        if (home.getIsJoined() == null) {
            home.setIsJoined("");
        }
        if (home.getCurTime() == null) {
            home.setCurTime("");
        }
    }

    private static void filterFor(HomeGetSeconds home) {
        if (home.getSecondId() == null) {
            home.setSecondId("");
        }
        if (home.getName() == null) {
            home.setName("");
        }
        if (home.getMainImage() == null) {
            home.setMainImage("");
        }
        if (home.getPrice() == null) {
            home.setPrice("");
        }
        if (home.getProductId() == null) {
            home.setProductId("");
        }
        if (home.getBeginTime() == null) {
            home.setBeginTime("");
        }
        if (home.getEndTime() == null) {
            home.setEndTime("");
        }
        if (home.getCurrentTime() == null) {
            home.setCurrentTime("");
        }
        if (home.getBuyerNum() == null) {
            home.setBuyerNum("");
        }
        if (home.getStoreNum() == null) {
            home.setStoreNum("");
        }
    }

    private static void filterFor(HomeGetSpecialBanners home) {
        if (home.getSpecialId() == null) {
            home.setSpecialId("");
        }
        if (home.getMainImage() == null) {
            home.setMainImage("");
        }
        if (home.getName() == null) {
            home.setName("");
        }
        if (home.getType() == null) {
            home.setType("");
        }
        if (home.getLink() == null) {
            home.setLink("");
        }
    }

    private static void filterFor(HomeGetGroupBanner home) {
        if (home.getImg() == null) {
            home.setImg("");
        }
    }

    private static void filterFor(HomeGetActivities home) {
        if (home.getBannerId() == null) {
            home.setBannerId("");
        }
        if (home.getPosition() == null) {
            home.setPosition("");
        }
        if (home.getImg() == null) {
            home.setImg("");
        }
        if (home.getBannerType() == null) {
            home.setBannerType("");
        }
        if (home.getTarget() == null) {
            home.setTarget("");
        }
    }

    private static void filterFor(HomeGetPopAd home) {
        if (home.getBannerId() == null) {
            home.setBannerId("");
        }
        if (home.getPosition() == null) {
            home.setPosition("");
        }
        if (home.getImg() == null) {
            home.setImg("");
        }
        if (home.getBannerType() == null) {
            home.setBannerType("");
        }
        if (home.getTarget() == null) {
            home.setTarget("");
        }
    }

    private static void filterFor(HomeGetExclusives home) {
        if (home.getExclusiveId() == null) {
            home.setExclusiveId("");
        }
        if (home.getName() == null) {
            home.setName("");
        }
        if (home.getMainImage() == null) {
            home.setMainImage("");
        }
        if (home.getPrice() == null) {
            home.setPrice("");
        }
        if (home.getProductId() == null) {
            home.setProductId("");
        }
        if (home.getBeginTime() == null) {
            home.setBeginTime("");
        }
        if (home.getEndTime() == null) {
            home.setEndTime("");
        }
        if (home.getCurrentTime() == null) {
            home.setCurrentTime("");
        }
        if (home.getBuyerNum() == null) {
            home.setBuyerNum("");
        }
        if (home.getStoreNum() == null) {
            home.setStoreNum("");
        }
    }

    private static void filterFor(HomeGetHotsales home) {
        if (home.getHotsaleId() == null) {
            home.setHotsaleId("");
        }
        if (home.getName() == null) {
            home.setName("");
        }
        if (home.getMainImage() == null) {
            home.setMainImage("");
        }
        if (home.getPrice() == null) {
            home.setPrice("");
        }
        if (home.getMktprice() == null) {
            home.setMktprice("");
        }
        if (home.getProductId() == null) {
            home.setProductId("");
        }
        if (home.getBeginTime() == null) {
            home.setBeginTime("");
        }
        if (home.getEndTime() == null) {
            home.setEndTime("");
        }
        if (home.getBuyerNum() == null) {
            home.setBuyerNum("");
        }
        if (home.getStoreNum() == null) {
            home.setStoreNum("");
        }
    }

    private static void filterFor(HomeGetNewest home) {
        if (home.getNewestId() == null) {
            home.setNewestId("");
        }
        if (home.getName() == null) {
            home.setName("");
        }
        if (home.getMainImage() == null) {
            home.setMainImage("");
        }
        if (home.getPrice() == null) {
            home.setPrice("");
        }
        if (home.getMktprice() == null) {
            home.setMktprice("");
        }
        if (home.getProductId() == null) {
            home.setProductId("");
        }
        if (home.getBeginTime() == null) {
            home.setBeginTime("");
        }
        if (home.getEndTime() == null) {
            home.setEndTime("");
        }
        if (home.getBuyerNum() == null) {
            home.setBuyerNum("");
        }
        if (home.getStoreNum() == null) {
            home.setStoreNum("");
        }
    }

    private static void filterFor(HomeGetVirtualcat home) {
        if (home.getTitle() == null) {
            home.setTitle("");
        }
        if (home.getMainImage() == null) {
            home.setMainImage("");
        }
        if (home.getLink() == null) {
            home.setLink("");
        }
    }

    private static void filterFor(HomeGetReports home) {
        if (home.getContents() == null) {
            home.setContents("");
        }
        if (home.getType() == null) {
            home.setType("");
        }
        if (home.getLinkType() == null) {
            home.setLinkType("");
        }
        if (home.getTarget() == null) {
            home.setTarget("");
        }
    }

    public static void filter(HomeGetResponse home) {
        if (home.getGroups() == null) {
            home.setGroups(new ArrayList<HomeGetGroups>());
        } else {
            for (HomeGetGroups item : home.getGroups()) {
                filterFor(item);
            }
        }
        if (home.getSeconds() == null) {
            home.setSeconds(new ArrayList<HomeGetSeconds>());
        } else {
            for (HomeGetSeconds item : home.getSeconds()) {
                filterFor(item);
            }
        }
        if (home.getSpecialBanners() == null) {
            home.setSpecialBanners(new ArrayList<HomeGetSpecialBanners>());
        } else {
            for (HomeGetSpecialBanners item : home.getSpecialBanners()) {
                filterFor(item);
            }
        }
        if (home.getGroupBanner() == null) {
            home.setGroupBanner(new HomeGetGroupBanner());
        } else {
            filterFor(home.getGroupBanner());
        }
        if (home.getActivities() == null) {
            home.setActivities(new ArrayList<HomeGetActivities>());
        } else {
            for (HomeGetActivities item : home.getActivities()) {
                filterFor(item);
            }
        }
        if (home.getPopAd() == null) {
            home.setPopAd(new HomeGetPopAd());
        } else {
            filterFor(home.getPopAd());
        }
        if (home.getExclusives() == null) {
            home.setExclusives(new ArrayList<HomeGetExclusives>());
        } else {
            for (HomeGetExclusives item : home.getExclusives()) {
                filterFor(item);
            }
        }
        if (home.getHotsales() == null) {
            home.setHotsales(new ArrayList<HomeGetHotsales>());
        } else {
            for (HomeGetHotsales item : home.getHotsales()) {
                filterFor(item);
            }
        }
        if (home.getNewest() == null) {
            home.setNewest(new ArrayList<HomeGetNewest>());
        } else {
            for (HomeGetNewest item : home.getNewest()) {
                filterFor(item);
            }
        }
        if (home.getVirtualcat() == null) {
            home.setVirtualcat(new ArrayList<HomeGetVirtualcat>());
        } else {
            for (HomeGetVirtualcat item : home.getVirtualcat()) {
                filterFor(item);
            }
        }
        if (home.getReports() == null) {
            home.setReports(new ArrayList<HomeGetReports>());
        } else {
            for (HomeGetReports item : home.getReports()) {
                filterFor(item);
            }
        }
        if (home.getRemarks() == null) {
            home.setRemarks("");
        }
    }

*/

}
